﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Microhard.WarehouseInsp.Buz.Validator;

namespace Microhard.WarehouseInsp.Buz.Models
{
    [FluentValidation.Attributes.Validator(typeof(AttachmentModelValidator))]
    public class AttachmentModel : BasePermissionModel
    {
        [ModelPKID]
        public Guid AttachmentID { set; get; }
        public string Name { set; get; }
        public string FileType { set; get; }
        public byte[] Content { set; get; }
        public DateTime CreateTime { set; get; }
        public int AttachmentType { get; set; }
        public Guid MainDataID { get; set; }
        public bool HasFullFilePath { set; get; }
        public string FullFilePath { set; get; }

    }
}
